package com.xuecheng.user.exception;

import lombok.Getter;

/**
 * @author 勾新杰
 * @version 1.0
 * @description: 错误码枚举类
 * @date 2025/2/24 22:41
 */
@Getter
public enum AuthError {

    AUTH_TWICE_PASSWORD_NOT_MATCH("两次输入的密码不一致"),

    AUTH_CHECK_CODE_NOT_CORRECT("验证码错误或超时"),

    AUTH_USER_NOT_EXIST("用户不存在"),

    AUTH_USERNAME_ALREADY_EXIST("该用户名已存在"),

    AUTH_EMAIL_ALREADY_REGISTER("该邮箱已被注册"),

    AUTH_PHONE_ALREADY_REGISTER("该手机号已被注册"),

    CELL_PHONE_AND_EMAIL_CANNOT_BOTH_BE_NULL("手机号和邮箱不能同时为空"),

    AUTH_CELL_PHONE_HAS_NO_REGISTER("该手机号未注册"),

    AUTH_TYPE_NOT_EXIST("认证类型不存在");

    private final String errMsg;

    AuthError(String errMsg){
        this.errMsg = errMsg;
    }
}
